﻿
/*
EC-IDE class, from default dom template,
	AppEntry
	AppEntry

Author:

All Rights Reserved

LICENSE:

Created: 2008-11-06 09:57:35

Updated:

*/

//#EC_PARAM {param:'n'}

$ec.$preload(
	"AppEntry",
	function()
	{
		//#EC_IMPORT
		var RuleJavascript=$ec.$import("org.supertree.editor.RuleJavascript").prototype;
		var RuleXslt=$ec.$import("org.supertree.editor.RuleXslt").prototype;
		var RuleHtml=$ec.$import("org.supertree.editor.RuleHtml").prototype;
		//#END_EC_IMPORT

		this.prototype= {
//////////////////////////////
// EC-CLASS BODY
//////////////////////////////
			
			eid: "",    //binding element id
			
			AppEntry: function( e, p )  //ec-class constructor
			{
				this.eid= $ec.$eid(e);      //assign and get unique element id
				

				var o=$ec($ec(e,"editor"));
				o.AddRule( RuleJavascript );
				o.AddRule( RuleXslt );
				o.AddRule( RuleHtml );
				//aaa
				o.SetRule( RuleJavascript );
				//o.SetRule( RuleXslt );
				
				o.CreateToolbar($ec(e,"tool"));
				
				o.SetText("var a=0;\nif(a==0)\n{\n\ta=1;\n}\n");
			}
			
			
			
//////////////////////////////
// END EC-CLASS BODY    //NOTE - DO NOT CHANGE THESE 3 LINES, the ide wizards may use them.
//////////////////////////////
		};
		
		//#EC_RES
		this.$res=["",0,"<div>\n\t<div name=editor style='width:500px;height:300px;' jclass=\"org.supertree.editor.SyntaxEditorEx{bind:'a::<div>',linenum:1,wrap:0,readonly:0,fontsize:16,wrap:0}\"></div>\n</div>" ];
		//#END_EC_RES
		
		//#EC_MAP
		this.$map=[
			];
		//#END_EC_MAP
		
	}
);
